/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Formas;

import java.awt.Graphics;

/**
 *
 * @author Pedro
 */
public class RetanguloArrendondado extends Retangulo{
    private int arcWidth;
    private int arcHeight;

    public RetanguloArrendondado(int sX, int sY, int width, int height, int arcWidth, int arcHeight)
    {
       super(sX,sY,width,height);
       this.arcHeight = arcHeight;
       this.arcWidth = arcWidth;
    }

    /**
     * @return the arcWidth
     */
    public int getArcWidth() {
        return arcWidth;
    }

    /**
     * @param arcWidth the arcWidth to set
     */
    public void setArcWidth(int arcWidth) {
        this.arcWidth = arcWidth;
    }

    /**
     * @return the arcHeight
     */
    public int getArcHeight() {
        return arcHeight;
    }

    /**
     * @param arcHeight the arcHeight to set
     */
    public void setArcHeight(int arcHeight) {
        this.arcHeight = arcHeight;
    }

    @Override
    public Forma drawForma(Graphics g)
    {   g.setColor(super.getCor());
        g.drawRoundRect(super.getsX(), super.getsY(), super.getWidth(), super.getHeight(),this.arcWidth,this.arcHeight);
        return this;
    }

}
